﻿using Ninject;
using Nx.Bootstrappers;
using Nx.Clients.Http;
using Nx.Clients.Tests.Controllers;
using Nx.Kernel;

namespace Nx.Clients.Tests
{
    public class Bootstrapper : BootstrapperBase
    {
        protected override void ConfigureContainer()
        {
            //Kernel.RegisterTypeIfMissing();
            Kernel.RegisterTypeIfMissing<TestController>(false);

            Kernel.RegisterTypeIfMissing<ISerializer, JsonSerializer>(false);
            Kernel.RegisterTypeIfMissing<ITestWebApiClient, TestWebApiClient>(false);
        }

        protected override IKernel CreateContainer()
        {
            return new StandardKernel();
        }
    }
}
